package com.example.day12_7_12_2.presenter;

import com.example.day12_7_12_2.base.BasePresenter;
import com.example.day12_7_12_2.bean.NaviBean;
import com.example.day12_7_12_2.model.IModel;
import com.example.day12_7_12_2.util.ResultBack;
import com.example.day12_7_12_2.view.IView;

public class IPresenter extends BasePresenter<IView> {

    private IModel iModel;

    @Override
    public void initModel() {
        iModel = new IModel();
    }

    @Override
    public void getData() {
        iModel.getData(new ResultBack<NaviBean>() {
            @Override
            public void succeed(NaviBean naviBean) {
                mView.setData(naviBean);
            }

            @Override
            public void failed(String msg) {

            }
        });
    }
}
